package com.sciencep.pro.core.dao;

import com.sciencep.pro.core.domain.dto.home.ManPowerExpendByProjectVO;
import com.sciencep.pro.core.domain.dto.home.ManpowerExpendByRoleVO;
import com.sciencep.pro.core.domain.dto.prohistory.ProHistoryTo;
import com.sciencep.pro.core.domain.entity.ProHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author Sciencep
 */
public interface ProHistoryMapper extends BaseMapper<ProHistory> {

    ProHistoryTo getProgress(String proCode);

    List<ManpowerExpendByRoleVO> getRoleVoList(@Param("proNos") Set<String> proNos);

    List<ManPowerExpendByProjectVO> getVoList(@Param("proNos") Set<String> proNos);

    ProHistoryTo countProgress(String proCode);
}
